#include "Server.hpp"

int main()
{
    Server server;
    if(!server.OpenFifo())
        return 1;

    while (true)
    {
        std::string out;
        int n = server.readFifo(&out);
        if(n == 0)
            break;
        std::cout << out << std::endl;
    }

    server.CloseFifo();
    return 0;
}